package StudyCode.summary.mycollection;

import java.util.LinkedList;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class InsertAnObjectIntoASpecificPositionForArrayList {
	public static void main(String[] args) {
		LinkedList<String> officers = new LinkedList<>();
		officers.add("Blake");
		officers.add("Burns");
		officers.add("Jack");
		officers.add("P");
		officers.add("Tom");
		System.out.println("插入前,LinkedList 元素 :" + officers);
		officers.add(2, "new");
		System.out.println("插入后,LinkedList 元素 :" + officers);
	}
}
